﻿//Copyright 2007, 2008 - Ariel Yaroshevich (a.k.a blackrussian) (hamlet@inter.net.il)
//This file is part of SharpMap.
//SharpMap is free software; you can redistribute it and/or modify
//it under the terms of the GNU Lesser General Public License as published by
//the Free Software Foundation; either version 2 of the License, or
//(at your option) any later version.

//SharpMap is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU Lesser General Public License for more details.

//You should have received a copy of the GNU Lesser General Public License
//along with SharpMap; if not, write to the Free Software
//Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA



using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Resources;
using System.Reflection;
using System.Threading;
using System.Collections;
using System.Windows.Resources;
using System.Windows.Media;

namespace SharpMap.Wpf.Rendering
{
    public static class Resources
    {
        static ResourceDictionary _resourceDictionary;
        static Resources()
        {                              //SharpMap.Rendering.Wpf
            Uri resourcePath = new Uri(@"SharpMap.Rendering.Wpf;component\Resources\Resources.xaml", UriKind.Relative);
            // GetResourceNames();
            StreamResourceInfo info =
       Application.GetResourceStream(resourcePath);

            object obj = Application.LoadComponent(resourcePath);
            _resourceDictionary = obj as ResourceDictionary;
         }
        public static ResourceDictionary Get
        {
            get { return _resourceDictionary; }
        }

        static public DrawingImage DefaultSymbol
        {
            get
            {
               // return Get["DefaultSelectedImage"] as DrawingImage;
                return Get["DefaultSymbol"] as DrawingImage; 
            }
        }

        static public DrawingImage DefaultSelectedSymbol
        {
            get { return Get["DefaultSelectedImage"] as DrawingImage; }
        }


        static public DrawingImage DefaultHighlightedSymbol
        {
            get { return Get["DefaultHighlightedImage"] as DrawingImage; }
        }

        static public DrawingImage City1MCapital1
        {
            get { return Get["City1MCapital1"] as DrawingImage; }
        }

        static public DrawingImage City1M
        {
            get { return Get["City1M"] as DrawingImage; }
        }

        static public DrawingImage City500K
        {
            get { return Get["City500K"] as DrawingImage; }
        }

        static public DrawingImage City100K
        {
            get { return Get["City100K"] as DrawingImage; }
        }

        static public DrawingImage City20K
        {
            get { return Get["City20K"] as DrawingImage; }
        }

    

         static public DrawingImage City5K
        {
            get { return Get["City5K"] as DrawingImage; }
        }

        static public DrawingImage CitySmall
        {
            get { return Get["CitySmall"] as DrawingImage; }
        }
    }
}
